package com.kkd.springcloud.dao;

import com.kkd.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 14587
 * @date 2021/1/16 10:23
 */
@Mapper
@Repository
public interface DeptDao {
    //增加
    public int addDept(Dept dept);
    //通过id查询
    public Dept queryDeptById(long id);
    //查询所有部门
    public List<Dept> queryDepts();

}
